import axios from '@/common/request.js';

//商品列表
export const goodList = payload => axios({
	url: '/goods/list',
	method: 'post',
	payload
})

//商品分类列表
export const categoryList = payload => axios({
	url: '/category/list',
	method: 'post',
	payload
})

//在售的商品总数
export const goodsCount = payload => axios({
	url: '/goods/count',
	method: 'post',
	payload
})

//商品详情
export const goodsDetail = payload => axios({
	url: '/goods/detail',
	method: 'post',
	payload
})
